package main;

import rmi.Client;
import syncer.client.SyncClient;
import ent.Ent1;
import ent.Ent2;

public class CycleRefMain {

	public void test(){
		Ent1 ent1=new Ent1();
		Ent2 ent2=new Ent2();
		ent1.ent2=ent2;
		ent2.ent1=ent1;
		
		SyncClient synCli= SyncClient.getInstance();
		synCli.insertObj(ent1);
		synCli.insertObj(ent2);
		
		Client client = new Client();
		client.compare(ent1, ent2);
		for (int i = 0; i < 2; i++) {
			client.setEnt(ent1, ent2);
		}
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		CycleRefMain m = new CycleRefMain();
		m.test();
	}

}
